package com.seed.core.column;

import com.seed.core.enumeration.SqlOp;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class TimestampColumn extends Column {
    private Timestamp defVal; //COLUMN_DEF 默认值
    private Timestamp min = Timestamp.valueOf("1970-01-01 00:00:01");
    private Timestamp max = Timestamp.valueOf("9999-12-31 23:59:59");

    @Override
    public SqlOp getDefaultOp() {
        return SqlOp.eq;
    }

    public Timestamp getDefVal() {
        return defVal;
    }

    public void setDefVal(Timestamp defVal) {
        this.defVal = defVal;
    }

    public Timestamp getMin() {
        return min;
    }

    public void setMin(Timestamp min) {
        this.min = min;
    }

    public Timestamp getMax() {
        return max;
    }

    public void setMax(Timestamp max) {
        this.max = max;
    }

    @Override
    public Column copy() {
        return null;
    }
}
